function greeter(fn: (a: string) => void) {
    fn('Hello Wolrd');
}

function printToConsole(s: string) {
    console.log(s);
}

greeter(printToConsole);